//面包屑
const path = ['销售管理', '销售达成率分析', '达成率分析列表'];
//搜索条件
const filterOption = {
	items: [
	{
		label: "统计周期",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "openTime"
	},
	{
		label: "地区",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "type"
	},
	{
		label: "渠道",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "type"
	},
	{
		label: "扣除退款",
		type: "dropdown",
		data: [
			{
				key:1,
				value:'是'
			},
			{
				key:0,
				value:'否'
			}
		],
		placeholder: "请选择",
		value: undefined,
		key: "type"
	}],
	btnGroup: [{
			label: "查询",
			type: "search"
		},{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//现金款盘点记录
const tableHeaderData = [
	{
		prop:'indexNumber',
		label:'日期',
		width:''
	},
	{
		prop:'bbb',
		label:'订单单数',
		width:''
	},
	{
		prop:'ccc',
		label:'货品件数',
		width:''
	},
	{
		prop:'ddd',
		label:'当日金额',
		width:''
	},
	{
		prop:'eee',
		label:'退货订单数',
		width:''
	},
	{
		prop:'ggg',
		label:'退货件数',
		width:''
	},
	{
		prop:'a',
		label:'退货金额',
		width:''
	},
	{
		prop:'aa',
		label:'售中退货订单数',
		width:''
	},
	{
		prop:'b',
		label:'售中退货订件数',
		width:''
	},
	{
		prop:'b',
		label:'退款订单数',
		width:''
	},
	{
		prop:'b',
		label:'退款单金额',
		width:''
	},
	{
		prop:'b',
		label:'当年累计应付',
		width:''
	},
	{
		prop:'b',
		label:'当月累计应付',
		width:''
	},
	{
		prop:'b',
		label:'当年累计退款',
		width:''
	},
	{
		prop:'b',
		label:'当月累计退款',
		width:''
	}
]
//表格数据
const tableData = [];

const yearTargetHeader = [
	{
		prop:'january',
		label:'1月',
		width:''
	},{
		prop:'february',
		label:'2月',
		width:''
	},{
		prop:'march',
		label:'3月',
		width:''
	},{
		prop:'april',
		label:'4月',
		width:''
	},{
		prop:'may',
		label:'5月',
		width:''
	},{
		prop:'june',
		label:'6月',
		width:''
	},{
		prop:'july',
		label:'7月',
		width:''
	},{
		prop:'august',
		label:'8月',
		width:''
	},{
		prop:'september',
		label:'9月',
		width:''
	},{
		prop:'october',
		label:'10月',
		width:''
	},{
		prop:'november ',
		label:'11月',
		width:''
	},{
		prop:'december ',
		label:'12月',
		width:''
	},{
		prop:'totalYear',
		label:'全年',
		width:''
	}
]

let yearTargetList = []

//charts配置
const chartsOption = {
	title:{},
    xAxis: {
        data: ['3月'],
        axisTick: {show: false}
    },
    yAxis: {
        max:1500
	},
	legend: {
		data:['已达销售','剩余未完成'],
		top:'32'
	},
	grid: {
		top:'80',
		bottom: '3%',
		left:'6%',
		containLabel: true
    },
    series: [
		{	
			name:'已达销售',
            type: 'bar',
			barGap: '0%',
			barWidth: 100,
            data: [900],
			label: {
                normal: {
                    show: true,
                    position: 'top'
                }
			},
			color:'#fb753a',
        },
        {	
            name: '',
            type: 'bar',
			stack: '总量',
			barGap: '0%',
			barWidth: 100,
			data: [0, 900],
            itemStyle: {
                normal: {
                    barBorderColor: 'rgba(0,0,0,0)',
                    color: 'rgba(0,0,0,0)'
                },
                emphasis: {
                    barBorderColor: 'rgba(0,0,0,0)',
                    color: 'rgba(0,0,0,0)'
                }
			}
        },
        {
            name: '剩余未完成',
            type: 'bar',
			stack: '总量',
			barGap: '0%',
			barWidth: 100,
			data: ['-', 300],
			label: {
                normal: {
                    show: true,
                    position: 'top'
                }
			},
			color:'#fe5252',
        }]
};

//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
let Model = {
	data() {
		return {
			Model: {
				path: path,
				paginationObject,
				filterOption: filterOption,
				tableHeaderData,
				tableData,
				popType:0,//0新增1查看
				editDialogObsolete:false,
				yearTargetHeader,
				yearTargetList,
				yearCharts:'',
				monthCharts:'',
				chartsOption
			}
		}
	}
}
export default Model;
